package com.mall.promo.dal.persistence;

import com.mall.promo.dal.entitys.PromoItem;
import com.mall.promo.dto.PromoSecKillProductDetail;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author
 * @date 2020/12/26 18:17
 */
public interface PromoItemMapper extends Mapper<PromoItem> {
    List<PromoSecKillProductDetail> selectSecKillProductList(@Param("psId") Integer psId);

    Integer decreaseStock(@Param("psId") Long psId, @Param("productId") Long productId);
}